<template>
<div>
  <detailnavbar>

  </detailnavbar>
  <scrollviews :topimage="topimages"></scrollviews>
</div>
</template>

<script>
import detailnavbar from "../detail/childcomps/detailnavbar.vue"

import scrollviews from "./childcomps/scrollviews";

import{
  getdetail
} from "../../network/detail"


export default {
  name:'datail',
  components:{
detailnavbar,
    scrollviews
  },
  data(){
    return{
      iid:null,
      topimages:[]
    }
  },
  created(){
    //传iid
this.iid=this.$route.params.iid
//请求数据
getdetail(this.iid).then(res=>{
  this.topimages=res.data.result.itemInfo.topImages
  // console.log(res.data.result.itemInfo.topImages)
})

  }

}
</script>

<style scoped>

</style>
